//菜单配置
export const menuConfig = {
	// menubar: "file edit insert view format table tools", //菜单栏配置，设为false则隐藏，不配置则默认显示全部菜单，也可自定义配置--查看 http://tinymce.ax-z.cn/configure/editor-appearance.php --搜索“自定义菜单”
	menubar: false,
	// menu: {
	//     edit: { title: "编辑", items: "undo redo | cut copy paste pastetext | selectall" },
	//     insert: { title: "插入", items: "link image  |  hr" },
	//     view: { title: "查看", items: "visualaid" },
	//     format: {
	//         title: "格式",
	//         items: "bold italic underline strikethrough superscript subscript | formats | removeformat",
	//     },
	//     table: { title: "表格", items: "inserttable tableprops deletetable | cell row column" },
	//     tools: { title: "工具", items: "spellchecker code" },
	// },
};
//语言与主题配置
export const themeConfig = {
	language_url: '/tinymce/langs/zh_CN.js', //引入语言包文件
	language: 'zh_CN', //语言类型

	skin_url: '/tinymce/skins/ui/oxide', //皮肤：浅色
	// skin_url: '/tinymce/skins/ui/oxide-dark',//皮肤：暗色
};
//字体配置
export const fontConfig = {
	fontsize_formats: '12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 48px 56px 72px', //字体大小
	font_formats:
		'Sofia=Sofia Pro Regular, Sofia Pro Light, PingFang SC, Arial, Microsoft YaHei, sans-serif;;微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;',
	style_formats: [
		{
			title: '行高',
			items: [
				{ title: '1', block: 'p', styles: { 'line-height': '1.0' } },
				{ title: '1.5', block: 'p', styles: { 'line-height': '1.5' } },
				{ title: '1.75', block: 'p', styles: { 'line-height': '1.75' } },
				{ title: '2', block: 'p', styles: { 'line-height': '2.0' } },
				{ title: '3', block: 'p', styles: { 'line-height': '3.0' } },
				{ title: '4', block: 'p', styles: { 'line-height': '4.0' } },
				{ title: '5', block: 'p', styles: { 'line-height': '5.0' } },
			],
		},
	],
	style_formats_merge: false,
	style_formats_autohide: true,
};
//工具栏配置
export const toolbarConfig = {
	/*
                | formatselect fontselect fontsizeselect | 段落、字体、字号
                | undo redo | 撤销、重做
                | code bold italic underline strikethrough | 源代码、粗体、斜体、下划线、删除线
                | alignleft aligncenter alignright alignjustify | 左对齐、中间对齐、右对齐、两端对齐
                | outdent indent numlist bullist insertdatetime | 减少缩进、增加缩进、编号列表、项目列表、时间日期
                | table forecolor backcolor removeformat | 表格、文字颜色、背景色、清除格式
                | hr searchreplace pagebreak charmap emoticons | 水平分割线、查找替换、分页符、特殊符号、表情
                | fullscreen preview save print | 全屏、预览、保存、打印
                | image media link anchor codesample | 上传文件、上传素材、插入链接、锚点、插入代码

            */

	toolbar:
		'| formatselect fontselect fontsizeselect styleselect' +
		'| undo redo ' +
		'| code bold italic underline strikethrough ' +
		'| alignleft aligncenter alignright alignjustify ' +
		'| outdent indent numlist bullist insertdatetime ' +
		'| table forecolor backcolor removeformat ' +
		'| hr searchreplace charmap emoticons ' +
		'| fullscreen preview save print ' +
		'| image media link anchor codesample ',
	toolbar_mode: 'sliding',
};
//插件配置
export const pluginsConfig = {
	plugins:
		'print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template code codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount textpattern autosave ',
};
export const otherConfig = {
	placeholder: '请输入...',
	branding: false, //tiny技术支持信息是否显示
	resize: false, //编辑器宽高是否可变，false-否,true-高可变，'both'-宽高均可，注意引号
	statusbar: false, //最下方的元素路径和字数统计那一栏是否显示
	elementpath: false, //元素路径是否显示

	content_style: 'img {max-width:100%;}', //直接自定义可编辑区域的css样式
	content_css: './tinycontent.css', //以css文件方式自定义可编辑区域的css样式，css文件需自己创建并引入

	// images_upload_url: '/demo/upimg.php',  //后端处理程序的url
	// images_upload_base_path: '/demo',  //相对基本路径--关于图片上传建议查看--http://tinymce.ax-z.cn/general/upload-images.php
	// 此处为图片上传处理函数，这个直接用了base64的图片形式上传图片，
	// 如需ajax上传可参考https://www.tiny.cloud/docs/configure/file-image-upload/#images_upload_handler
};
